﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>xHwndToEid（获取指定窗口的创建顺序）</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<P>函数原型：<br>Function xHwndToEid(Parent As HWND,ClassName As WString Ptr,hWnd As HWND) As Integer<br>int xHwndToEid(HWND Parent, wchar* ClassName, HWND hWnd);</P>
<P>VB、VBS、按键精灵声明：<br>Declare Function Lib "xTask.dll" xHwndToEid(ByVal Parent As Long, ByVal ClassName As String, ByVal hWnd As Long) As Long</P>
<P>参数：<br>Parent：父窗口<br>ClassName：类名，支持模糊匹配<br>hWnd：子窗口句柄</P>
<P>成功返回对应的控件ID，失败返回0</P>
<P>说明：<br>可以用于获取xEidToHwnd第三个参数的值。</P>
</body>
</html>